package com.jdbc.dao;

import com.jdbc.pojo.Account;
import com.jdbc.pojo.Student;
import org.springframework.stereotype.Component;

public interface StudentDao {

        Student findUsernameAndPassword(String username, String password);

        //添加记录
        int addStudent(Student student);

        //按id修改记录
        int updateStudentById(Student student);

        //按id删除记录
        int deleteStudentById(int id);

        //按id查询
        Student findById(int id);
}

